package modeller.databasedesignmodel;

/**
 * Created by IntelliJ IDEA.
 * User: Jason Ye
 * Date: 21/01/2012
 * Time: 16:22
 */
public enum IndexTypeEnum {

    PRIMARY_KEY("Primary Key",true),
    UNIQUE_INDEX("Unique Index",true);

    private final String name;
    private boolean tree = false;

    IndexTypeEnum(String newName) {
        this(newName,true);
    }

    IndexTypeEnum(String s, boolean isTree) {
        this.name=s;
        this.tree=isTree;
    }

    public String getName() {
        return name;
    }

    public boolean isTree() {
        return tree;
    }
}
